package io.github.luons.mediator.demo.service;

import io.github.luons.mediator.demo.entity.UserInfoDemo;
import io.github.luons.mediator.demo.mapper.UserInfoDemoMapper;
import io.github.luons.mediator.dsl.service.impl.BaseQueryServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luons6
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserInfoDemoService extends BaseQueryServiceImpl<UserInfoDemoMapper, UserInfoDemo> {

    private final UserInfoDemoMapper userDemoInfoMapper;

    public List<UserInfoDemo> findAllUserList() {
        UserInfoDemo demoInfo = new UserInfoDemo();
        return userDemoInfoMapper.selectList(null);
    }

}
